package com.kedou.domain;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 用户的Javabean
 * 
 * @author zhouchao
 * 
 */
public class User implements Parcelable {
	/**
	 * 用户头像地址
	 */
	private String portrait;
	/**
	 * 真实姓名
	 */
	private String realName;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 认证状态
	 */
	private int certStatus;
	/**
	 * 身份证号码
	 */
	private String IDCard;
	/**
	 * 电话号码
	 */
	private String phoneNum;
	/**
	 * 微信号
	 */
	private String weChat;
	/**
	 * 昵称
	 */
	private String nickName;
	/**
	 * 我的财富
	 */
	private String myWealth;
	/**
	 * 我的蝌蚪数
	 */
	private int kedouNum;

	/**
	 * 我的粉丝数
	 */
	private int fansNum;
	/**
	 * 用户Id,Fonder会用到
	 */
	private String userId;

	public String getPortrait() {
		return portrait;
	}

	public void setPortrait(String portrait) {
		this.portrait = portrait;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getCertStatus() {
		return certStatus;
	}

	public void setCertStatus(int certStatus) {
		this.certStatus = certStatus;
	}

	public String getIDCard() {
		return IDCard;
	}

	public void setIDCard(String iDCard) {
		IDCard = iDCard;
	}

	public String getPhoneNum() {
		return phoneNum;
	}

	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}

	public String getWeChat() {
		return weChat;
	}

	public void setWeChat(String weChat) {
		this.weChat = weChat;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getMyWealth() {
		return myWealth;
	}

	public void setMyWealth(String myWealth) {
		this.myWealth = myWealth;
	}

	public int getKedouNum() {
		return kedouNum;
	}

	public void setKedouNum(int kedouNum) {
		this.kedouNum = kedouNum;
	}

	public int getFansNum() {
		return fansNum;
	}

	public void setFansNum(int fansNum) {
		this.fansNum = fansNum;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(portrait);
		dest.writeString(realName);
		dest.writeString(email);
		dest.writeInt(certStatus);
		dest.writeString(IDCard);
		dest.writeString(phoneNum);
		dest.writeString(weChat);
		dest.writeString(nickName);
		dest.writeString(myWealth);
		dest.writeInt(kedouNum);
		dest.writeInt(fansNum);
		dest.writeString(userId);
	}

	public static final Parcelable.Creator<User> CREATOR = new Parcelable.Creator<User>() {

		@Override
		public User createFromParcel(Parcel source) {
			User user = new User();
			user.portrait = source.readString();
			user.realName = source.readString();
			user.email = source.readString();
			user.certStatus = source.readInt();
			user.IDCard = source.readString();
			user.phoneNum = source.readString();
			user.weChat = source.readString();
			user.nickName = source.readString();
			user.myWealth = source.readString();
			user.kedouNum = source.readInt();
			user.fansNum = source.readInt();
			user.userId = source.readString();
			return user;
		}

		@Override
		public User[] newArray(int size) {
			return new User[size];
		}

	};

}
